//
//  XMPurchaseProtocal.swift
//  XMPurchase
//
//  Created by Wxm on 2021/2/24.
//

import Foundation
import StoreKit
//为了适配oc，否则为了能使对象不至于循环引用，为了可以用weak修饰，protocol一般会设置为：class
@objc public protocol XMPurchaseProtocol {
    //返回查询商品列表
    @objc func didReceivedProducts(products:Array<SKProduct>)
    //支付成功
    @objc func paySuccess(order:[String:Any])
    //支付失败
    @objc func payFailed(reason:String,errorCode:Int)
    //支付取消
    @objc func payCancel()
}

